package com.lzx.iteam.bean.aidl;


import android.os.Parcel;
import android.os.Parcelable;

/**
 */
public class ChatMoreMsg implements Parcelable {


    public static final Parcelable.Creator<ChatMoreMsg> CREATOR = new Parcelable.Creator<ChatMoreMsg>() {

        @Override
        public ChatMoreMsg createFromParcel(Parcel source) {
            return new ChatMoreMsg(source);
        }

        @Override
        public ChatMoreMsg[] newArray(int size) {
            return new ChatMoreMsg[size];
        }
    };

    private String msgContent;
    private String sendTime;
    private int msgType;
    private String msgID;
    private String senderID;
    private String senderName;
    private String senderImg;
    private String chatGroupID;
    private boolean isReaded;
    private String textContent;
    private String imageContent;
    private String imageThumbnails;
    private String voiceContent;
    private String docContent;
    private boolean isSuccess;

    public ChatMoreMsg(int msgType, String msgContent, String msgTime, String msgID, String senderID, String senderName, String senderImg, String chatGroupID, boolean isReaded, String textContent, String imageContent, String imageThumbnails, String voiceContent, String docContent,boolean isSuccess) {
        this.msgType = msgType;
        this.msgContent = msgContent;
        this.sendTime = msgTime;
        this.msgID = msgID;
        this.senderID = senderID;
        this.senderName = senderName;
        this.senderImg = senderImg;
        this.chatGroupID = chatGroupID;
        this.isReaded = isReaded;
        this.textContent = textContent;
        this.imageContent = imageContent;
        this.imageThumbnails = imageThumbnails;
        this.voiceContent = voiceContent;
        this.docContent = docContent;
        this.isSuccess=isSuccess;
    }

    public ChatMoreMsg(Parcel source) {
        readFromParcel(source);
    }

    public ChatMoreMsg() {
    }


    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public int getMsgType() {
        return msgType;
    }

    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public String getMsgID() {
        return msgID;
    }

    public void setMsgID(String msgID) {
        this.msgID = msgID;
    }

    public String getSenderID() {
        return senderID;
    }

    public void setSenderID(String senderID) {
        this.senderID = senderID;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderImg() {
        return senderImg;
    }

    public void setSenderImg(String senderImg) {
        this.senderImg = senderImg;
    }

    public String getChatGroupID() {
        return chatGroupID;
    }

    public void setChatGroupID(String chatGroupID) {
        this.chatGroupID = chatGroupID;
    }

    public boolean isReaded() {
        return isReaded;
    }

    public void setIsReaded(boolean isReaded) {
        this.isReaded = isReaded;
    }

    public String getTextContent() {
        return textContent;
    }

    public void setTextContent(String textContent) {
        this.textContent = textContent;
    }

    public String getImageContent() {
        return imageContent;
    }

    public void setImageContent(String imageContent) {
        this.imageContent = imageContent;
    }

    public String getImageThumbnails() {
        return imageThumbnails;
    }

    public void setImageThumbnails(String imageThumbnails) {
        this.imageThumbnails = imageThumbnails;
    }

    public String getVoiceContent() {
        return voiceContent;
    }

    public void setVoiceContent(String voiceContent) {
        this.voiceContent = voiceContent;
    }

    public String getDocContent() {
        return docContent;
    }

    public void setDocContent(String docContent) {
        this.docContent = docContent;
    }


    public boolean isSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    @Override
    public String toString() {
        return "ChatMoreMsg{" +
                "msgContent='" + msgContent + '\'' +
                ", sendTime='" + sendTime + '\'' +
                ", msgType=" + msgType +
                ", msgID='" + msgID + '\'' +
                ", senderID='" + senderID + '\'' +
                ", senderName='" + senderName + '\'' +
                ", senderImg='" + senderImg + '\'' +
                ", chatGroupID='" + chatGroupID + '\'' +
                ", isReaded=" + isReaded +
                ", textContent='" + textContent + '\'' +
                ", imageContent='" + imageContent + '\'' +
                ", imageThumbnails='" + imageThumbnails + '\'' +
                ", voiceContent='" + voiceContent + '\'' +
                ", docContent='" + docContent + '\'' +
                ", isSuccess=" + isSuccess +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.msgContent);
        parcel.writeString(this.sendTime);
        parcel.writeInt(this.msgType);
        parcel.writeString(this.msgID);
        parcel.writeString(this.senderID);
        parcel.writeString(this.senderName);
        parcel.writeString(this.senderImg);
        parcel.writeString(this.chatGroupID);
        parcel.writeByte((byte) (isReaded ? 1 : 0));
        parcel.writeString(this.textContent);
        parcel.writeString(this.imageContent);
        parcel.writeString(this.imageThumbnails);
        parcel.writeString(this.voiceContent);
        parcel.writeString(this.docContent);
        parcel.writeByte((byte) (isSuccess ? 1 : 0));
    }

    public void readFromParcel(Parcel source) {
        msgContent = source.readString();
        sendTime = source.readString();
        msgType = source.readInt();
        msgID = source.readString();
        senderID = source.readString();
        senderName = source.readString();
        senderImg = source.readString();
        chatGroupID = source.readString();
        isReaded = source.readByte()!=0;
        textContent = source.readString();
        imageContent = source.readString();
        imageThumbnails = source.readString();
        voiceContent = source.readString();
        docContent = source.readString();
        isSuccess = source.readByte()!=0;
    }
}
